From: Marco Trevisan (TreviƱo) Date: Tue, 7 Mar 2023 00:12:15 +0000 (+0100) Subject: na-xembed: Do not use same coordinates of mutter offscreen windows X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~371^2^2~98 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=20a81d786697f40880e81d867453b1bad9524ec1;p=gnome-shell.git na-xembed: Do not use same coordinates of mutter offscreen windows We created the socket window using the same coordinates that mutter uses for its own off-screen windows created via meta_x11_display_create_offscreen_window() and that are filtered out in MetaWindowX11's is_our_xwindow(). This caused these windows to be never tracked by mutter and then we never received a "::window-created" signal that should lead a ShellTrayIcon to associate itself as the clone of the created MetaWindow. So, still keep it offscreen, but at different location. Part-of: --- diff --git a/src/tray/na-xembed.c b/src/tray/na-xembed.c index 5dbb37234..2183c9fcd 100644 --- a/src/tray/na-xembed.c +++ b/src/tray/na-xembed.c @@ -393,7 +393,7 @@ na_xembed_add_window (NaXembed *xembed, priv->socket_window = XCreateWindow (xdisplay, meta_x11_display_get_xroot (priv->x11_display), - -100, -100, 1, 1, 0, + -1, -1, 1, 1, 0, priv->xvisual_info->depth, InputOutput, plug_attrs.visual,